home *** CD-ROM | disk | FTP | other *** search
- package classes.game
- {
- import flash.display.MovieClip;
- import flash.events.Event;
- import flash.net.LocalConnection;
-
- [Embed(source="/_assets/assets.swf", symbol="classes.game.GameOver")]
- public class GameOver extends MovieClip
- {
-
-
- private var str:String;
-
- private var score:int;
-
- private var vFrm:int;
-
- public var Score:classes.game.Score;
-
- public function GameOver(param1:int)
- {
- super();
- addFrameScript(79,frame80);
- score = param1;
- this.gotoAndStop("view");
- vFrm = this.currentFrame;
- this.gotoAndPlay(1);
- this.addEventListener(Event.ENTER_FRAME,checkFrm);
- str = String(score);
- }
-
- private function checkFrm(param1:Event) : void
- {
- if(this.currentFrame == vFrm)
- {
- this.removeEventListener(Event.ENTER_FRAME,checkFrm);
- viewScore();
- }
- }
-
- internal function frame80() : *
- {
- this.stop();
- }
-
- public function viewScore() : void
- {
- this.Score.setScore(score);
- var _loc1_:LocalConnection = new LocalConnection();
- _loc1_.send("_user","fnPostScore",int(str));
- trace(int(str));
- }
- }
- }
-